#include"heap.h"


int main()
{
	int a[] = { 6,34,6,1,68,22,64,23,75,85,2,45,72 };
	Heap hp;
	HeapCreate(&hp, 10);
	int len = sizeof(a) / sizeof(a[0]);

	for (int i = 0; i < len; i++)
	{
		HeapPush(&hp, a[i]);
	}
	for (int i = 0; i < 5; i++)
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	return 0;

}